<?php

namespace app\admin\model;
use think\Model;
class IntergralLog extends Model
{
    protected $name = 'car_integrallog';
    protected $autoWriteTimestamp = true;
    protected $dateFormat = 'Y/m/d H:i:s';
    protected $createTime = 'create_at';
    public function userInfo() {
        return $this->hasOne(UserModel::class, 'id', 'userId')->bind([
            'nickname' => 'nickname'
        ]);
    }
}